﻿

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectTopic.aspx.cs" Inherits="Web_SelectTopic" %>

<% /*
    * linjie 2008-10-15 
    * 
    * Description: 选择专题页面，用gridview选择，只有界面，没有实际代码。
    * 
    */
    %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="css/public.css" type="text/css" rel="Stylesheet" />

    <script type="text/javascript">
        var last = null;//最后访问的RadioButton的ID
        function judge(obj)
         {
             if(last == null)
             {
                  last = obj.id;
//                  alert(last);
             }
             else
             {
                 var lo = document.getElementById(last);
                 lo.checked = "";
                 //alert(last + "  " + lo.checked);
                 last = obj.name;
             }
             obj.checked = "checked";
        }    
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div style="float: left">
                <span style="color: dimgray; font-weight: bold; font-size: 10pt; font-family: 宋体">专题名称：</span><asp:TextBox
                    ID="TextBox1" runat="server" Width="50%"></asp:TextBox></div>
            <div align="right" style="float: right">
                <asp:LinkButton ID="LinkButton1" runat="server" Text="新建专题" Font-Size="10pt"></asp:LinkButton></div>
        </div>
        <hr style="clear: both" />
        <div style="height: 400px">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="专题编号"
                DataSourceID="SqlDataSource1" Width="100%" CellPadding="4" ForeColor="#333333"
                Font-Size="10pt" GridLines="None" OnRowDataBound="GridView1_RowDataBound">
                <Columns>
                    <asp:TemplateField>
                        <ItemStyle Width="15px" />
                        <ItemTemplate>
                            <asp:RadioButton ID="RadioButton1" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="专题编号" HeaderText="专题编号" ReadOnly="True" SortExpression="专题编号">
                        <ItemStyle Width="10%" HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="专题名称" HeaderText="专题名称" SortExpression="专题名称" />
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
        </div>
        <br />
        <div align="right">
            <asp:Button ID="Button3" runat="server" Text="数据准备" CssClass="syBtn" />
            <asp:Button ID="Button1" runat="server" Text="确认" CssClass="syBtn" />
            <asp:Button ID="Button2" runat="server" Text="关闭" CssClass="syBtn" />
        </div>
    </form>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:PatentConnectionString %>"
        SelectCommand="SELECT [专题编号], [专题名称] FROM [ptcase_m]"></asp:SqlDataSource>
</body>
</html>
